<?php
class classSimpleMessageData{
    function Insert($aasValues){
        $sql_result = mysql_query('
            insert into chat (
                Ch_Name, Ch_Surname, Ch_Email, 
                Ch_Title, Ch_Text, Ch_DateTime
            )
            values(
                "'.$aasValues['smName'].'", "'.$aasValues['smSurname'].'", "'.$aasValues['smEmail'].'", 
                "'.$aasValues['smSubject'].'", "'.$aasValues['smText'].'", NOW()
            )
        ');
        
        if(!$sql_result)
            return false;
        else 
            return true;
    }
    
}
?>
